/**
 * Created by cjd on 2016/6/16.
 */
angular.module("app").controller("group.info.Ctrl", ["$scope", "group","$stateParams", function ($scope, group,$stateParams) {
    $scope.getGroupInfo = function(groupId){
        group.getGroupInfo({}, {id: groupId}, function (data) {
            if (data.statusCode == 0) {
                $scope.groupInfo = data.data;
            }
        });
    };
    if($stateParams.groupId){
        $scope.getGroupInfo($stateParams.groupId);
    }
}]);